<%--
  Created by IntelliJ IDEA.
  User: 练钰华
  Date: 2025/11/5
  Time: 13:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>仪表盘 - 员工信息管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<%-- 顶部导航栏 --%>
<div class="navbar">
    <div class="container">
        <h1>员工信息管理系统</h1>
        <div class="user-info">
            <span>欢迎您，${loginUser.username}！</span>
            <a href="${pageContext.request.contextPath}/LogoutServlet" class="btn logout-btn">退出登录</a>
        </div>
    </div>
</div>

<%-- 仪表盘内容 --%>
<div class="container">
    <div class="dashboard">
        <h2>系统概览</h2>
        <div class="stat-card">
            员工总数：${employeeCount}
        </div>
        <div class="stat-card" style="background-color: #2ecc71;">
            部门数：3
        </div>
        <div class="stat-card" style="background-color: #f39c12;">
            今日新增：0
        </div>
    </div>

    <div style="margin-top: 30px; text-align: center;">
        <a href="${pageContext.request.contextPath}/EmployeeServlet?action=list" class="btn add-btn">进入员工管理</a>
    </div>
</div>
</body>
</html>
